package com.changgou.goods.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 分类信息
 *
 * @author gaofeng
 * @date 2025/4/19 22:47
 */
@Data
@ApiModel(description = "Category", value = "Category")
@Table(name = "tb_category")
public class Category implements Serializable {
    /**
     * 分类ID
     */
    @ApiModelProperty(value = "分类ID")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Integer id;

    /**
     * 分类名称
     */
    @ApiModelProperty(value = "分类名称")
    @Column(name = "name")
    private String name;

    /**
     * 商品数量
     */
    @ApiModelProperty(value = "商品数量")
    @Column(name = "goods_num")
    private Integer goodsNum;

    /**
     * 是否显示
     */
    @ApiModelProperty(value = "是否显示")
    @Column(name = "is_show")
    private String isShow;

    /**
     * 是否导航
     */
    @ApiModelProperty(value = "是否导航")
    @Column(name = "is_menu")
    private String isMenu;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @Column(name = "seq")
    private Integer seq;

    /**
     * 上级ID
     */
    @ApiModelProperty(value = "上级ID")
    @Column(name = "parent_id")
    private Integer parentId;

    /**
     * 模板ID
     */
    @ApiModelProperty(value = "模板ID")
    @Column(name = "template_id")
    private Integer templateId;
}
